﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace template_dll
{
    public partial class Form3 : Form
    {
        public Form3()
        {
            InitializeComponent();
        }
        public string formtext = "";
        public string paramcomment = "";
        public string paramvalue = "";

        private void Form3_Load(object sender, EventArgs e)
        {
            this.Text = formtext;
        }

        private void button1_Click(object sender, EventArgs e)
        {
            if (textBox1.Text != "" && textBox2.Text != "")
            {
                paramcomment = textBox1.Text;
                paramvalue = textBox2.Text;
                this.DialogResult = DialogResult.OK;
            }
            else MessageBox.Show("Не заполнены все поля!");
        }
    }
}
